﻿@model tutors_clus.Models.course

@{
    ViewBag.Title = "Tạo lớp học mới";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
     <h2>Tạo lớp học mới</h2>
    <div>
       

        <div class="editor-label">
            @Html.LabelFor(model => model.name_cou)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.name_cou)
            @Html.ValidationMessageFor(model => model.name_cou)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.limited_num)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.limited_num, new { type="number"})
            @Html.ValidationMessageFor(model => model.limited_num)
        </div>

        

        <div class="editor-label">
            @Html.LabelFor(model => model.startdate_cou)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.startdate_cou, new { type="date"})
            @Html.ValidationMessageFor(model => model.startdate_cou)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.enddate_cou)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.enddate_cou,new { type="date"})
            @Html.ValidationMessageFor(model => model.enddate_cou)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.decription_cou)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.decription_cou)
            @Html.ValidationMessageFor(model => model.decription_cou)
        </div>

        <p>
            <input type="submit" value="Tạo lớp" />
        </p>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
